package com.sdry.service.impl.llm;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.llm.DevaningWorkMapper;
import com.sdry.model.jyy.Workload;
import com.sdry.model.llm.DevaningWork;
import com.sdry.model.lz.CodeMark;
import com.sdry.service.llm.DevaningWorkService;

/**
 * 拆箱工作量
 * @Package com.sdry.service.impl.llm
 * @author llm
 * @date 2019年7月31日
 * @version 1.0
 */
@Service
public class DevaningWorkServiceImp implements DevaningWorkService{

	@Resource
	DevaningWorkMapper devaningWorkMapper;
	
	/**       
	 * @param work
	 * @return    
	 */
	@Override
	public Long insert(DevaningWork work) {
		return devaningWorkMapper.insert(work);
	}

	/**       
	 * @param num
	 * @return    
	 */
	@Override
	public List<DevaningWork> queryWorkByNum(String num) {
		return devaningWorkMapper.queryWorkByNum(num);
	}

	/**       
	 * 精准拆箱作业
	 * @param unpackingBeforeCodes	拆箱前条码集合
	 * @param unpackingAfterCodes	拆箱前条码集合
	 * @param workloads	工作量集合
	 * @return 
	 * llm 19.11.11 新增   
	 */
	@Override
	public Map<String, Object> devanning(List<CodeMark> unpackingBeforeCodes, List<CodeMark> unpackingAfterCodes,
			List<Workload> workloads) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("status", "1");
		map.put("msg", "成功");
		map.put("message", "失败");
		return map;
	}

}
